package com.zengjianjun.push.msg.enums;

/**
 * 消息类型
 *
 * @author zengjianjun
 */
public enum PushMsgTypeEnum implements IEnum<String, String> {

    /**
     * 企业微信
     */
    TEXT("text", "文本"),
    MARKDOWN("markdown", "markdown"),
    IMAGE("image", "图片"),
    NEWS("news", "图文"),
    FILE("file", "文件"),
    VOICE("voice", "语音"),
    TEMPLATE_CARD("template_card", "模板卡片"),
    ;

    PushMsgTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private final String code;

    private final String desc;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
